'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:TaskAddcommentCtrl
 * @description
 * # TaskAddcommentCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('TaskAddcommentCtrl', function(openApi, DataService, $location, Util, $routeParams) {
        // openApi.replyTask
        var vm = this;
        vm.param = {}
        vm.param.refId = $routeParams.pkId;
        this.addcomment = function() {
            if (!vm.param.content) {
                Util.Toast("请输入评论");
                return
            }
            DataService.getData(openApi.replyTask, vm.param).then(function(data) {
                Util.Toast("评论成功");
                vm.param.content = ""
            })
        }
    });